﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SearchPanels.ascx.cs" Inherits="badminton.Controls.SearchPanels" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"  TagPrefix="ajaxToolkit" %>
     <script type="text/javascript">
         function PanelClick(sender, e) {

         }

         function ActiveTabChanged(sender, e) {

         }

         var HighlightAnimations = {};
         function Highlight(el) {
             if (HighlightAnimations[el.uniqueID] == null) {
                 HighlightAnimations[el.uniqueID] = Sys.Extended.UI.Animation.createAnimation({
                     AnimationName: "color",
                     duration: 0.5,
                     property: "style",
                     propertyKey: "backgroundColor",
                     startValue: "#FFFF90",
                     endValue: "#FFFFFF"
                 }, el);
             }
             HighlightAnimations[el.uniqueID].stop();
             HighlightAnimations[el.uniqueID].play();
         }

    </script>
        <ajaxToolkit:TabContainer runat="server" ID="Tabs" Height="290px" 
    OnClientActiveTabChanged="ActiveTabChanged" ActiveTabIndex="0" 
    Width="220px">
            <ajaxToolkit:TabPanel runat="server" ID="Panel1" HeaderText="场馆预定">
                <ContentTemplate>
                    <asp:UpdatePanel ID="updatePanel1" runat="server">
                        <ContentTemplate>
                        <table border="0" cellspacing="0" cellpadding="2" width="100%">
                            <tr>
                                <td>
                                所在城区
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownListCityArea" runat="server" OnSelectedIndexChanged="OnCityAreaSelectedIndexChanged" Width="120" AutoPostBack="True">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                所在球馆
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownListHall" runat="server" Width="120">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                开始时间
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxStartTime" runat="server" Width="120"></asp:TextBox>
                                    <ajaxToolkit:CalendarExtender
                                        ID="CalendarExtender1" runat="server" TargetControlID="TextBoxStartTime" Format="yyyy.MM.dd hh:mm">
                                    </ajaxToolkit:CalendarExtender>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                预约时长
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxTimeSpan" Text='0' runat="server"></asp:TextBox>
                                    <ajaxToolkit:NumericUpDownExtender ID="NumericUpDownExtender1" runat="server" Step="0.5" Minimum="0" Maximum="12" TargetControlID="TextBoxTimeSpan" Width="80">
                                    </ajaxToolkit:NumericUpDownExtender>小时
                                </td>
                            </tr>
                            <tr>
                                <td colspan=2 align="right">
                                    <asp:Button ID="ButtonSearchHall" runat="server" Text="搜索场地"               
                                        oncommand="OnSearchCourt" />
                                </td>
                            </tr>
                        </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
            
            <ajaxToolkit:TabPanel runat="server" ID="Panel2" HeaderText="培训查询" >
                <ContentTemplate>
                        <table border="0" cellspacing="0" cellpadding="2" width="100%">
                            <tr>
                                <td>
                                培训类别
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownListTrainingCategory" runat="server" 
                                        Width="120px" >
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                所在城区
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownListTraingCityArea" runat="server"  AutoPostBack="True" OnSelectedIndexChanged="OnTraingCityAreaChanged" Width="120px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                所在球馆
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownListTraingHall" runat="server" Width="120px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" height="5">
                                <hr />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                模糊查询
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxTraingText" runat="server" Width="120px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td colspan=2 align="right">
                                    <asp:Button ID="ButtonSearchTraining" runat="server" Text="搜索培训" 
                                        oncommand="OnSearchTraining"    />
                                </td>
                            </tr>
                        </table>

                </ContentTemplate>
            </ajaxToolkit:TabPanel>
        
             
        </ajaxToolkit:TabContainer>